package priv.lhy.feign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import priv.lhy.feign.configuration.FeignConfiguration;
import priv.lhy.feign.service.fallback.HelloServiceFallbackImpl;

/**
 * @author: lihy
 * date: 2019/10/31 16:55
 * description:
 */
@FeignClient(name = "HELLO-SERVICE",configuration = FeignConfiguration.class, fallback =
        HelloServiceFallbackImpl.class)
public interface IHelloService {

    @RequestMapping(value = "/hello")
    String helloService();
}
